home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- screenfool.library/AllocSFList
- screenfool.library/ClearDisplayList
- screenfool.library/ClearPubScreenList
- screenfool.library/ClosePublicScreen
- screenfool.library/DeallocSFList
- screenfool.library/FindDisplayID
- screenfool.library/FindDisplayMode
- screenfool.library/FindDMInList
- screenfool.library/FindScreenInList
- screenfool.library/NewDisplayList
- screenfool.library/NewPubScreenList
- screenfool.library/OpenPublicScreenA
- screenfool.library/StandardizeDisplayID
- screenfool.library/AllocSFList screenfool.library/AllocSFList
-
- NAME
- AllocSFList -- Allocate a SFList structure.
-
- SYNOPSIS
- sflist=AllocSFList(type);
- D0 D0
-
- struct ScreenFoolList *AllocSFList(UBYTE);
-
- FUNCTION
- Allocates a new SFList structure. These MUST be allocated by
- screenfool.library. You MAY NOT AllocMem() a ScreenFoolList.
-
- INPUTS
- type - One of sfNT_DISPLAY or sfNT_SCREEN.
-
- RESULT
- sflist - An initialized ScreenFoolList structure.
- NULL indicates that not enough memory was available.
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- DeallocSFList(), <libraries/screenfool.h>
-
- screenfool.library/ClearDisplayList screenfool.library/ClearDisplayList
-
- NAME
- ClearDisplayList -- Clear the viewmode listing
-
- SYNOPSIS
- ClearDisplayList(dmilist);
- A0
-
- void ClearDisplayList(struct ScreenFoolList *);
-
- FUNCTION
- Initialize the display viewmode list, by clearing any existing
- entries, and preparing for a call to NewDisplayList().
-
- This does not deallocate the ScreenFoolList structure. See the
- function DeallocSFList().
-
- INPUTS
- dmlist - A pointer to a ScreenFoolList structure.
-
- RESULT
- None
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- NewDisplayList(), AllocSFList(), DeallocSFList()
-
- screenfool.library/ClearPubScreenList screenfool.library/ClearPubScreenList
-
- NAME
- ClearPubScreenList -- Clear the public screen list.
-
- SYNOPSIS
- ClearPublicScreenList(pslist);
- A0
-
- void ClearPubScreenList(struct ScreenFoolList *);
-
- FUNCTION
- Clears the public screen list, releasing the allocated memory back
- to the operating system.
-
- This does *not* deallocate the ScreenFoolList structure. See the
- function DeallocSFList()
-
- INPUTS
- pslist - The screen list you want to empty
-
- RESULT
- None
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- NewPubScreenList(), AllocSFList(), DeallocSFList()
-
- screenfool.library/ClosePublicScreen screenfool.library/ClosePublicScreen
-
- NAME
- ClosePublicScreen -- Close a public screen
-
- SYNOPSIS
- ok = ClosePublicScreen(Name)
- D0 A0
-
- BOOL ClosePublicScreen(STRPTR);
-
- FUNCTION
- Close the public screen specified by Name.
-
- INPUTS
- Name - Pointer to a vaild Public Screen name
-
- RESULT
- ok - As intuition.library/CloseScreen()
- TRUE - Closed OK
- FALSE - Couldn't close screen -- a visitor window is
- probably still open on the screen.
-
- EXAMPLE
-
- NOTES
- This screen does not have to have been opened by screenfool.library
-
- BUGS
-
- SEE ALSO
- <intuituion/screens.h>, intuition.library/OpenScreen(),
- OpenPublicScreen(), intuition.library/CloseScreen()
-
- screenfool.library/DeallocSFList screenfool.library/DeallocSFList
-
- NAME
- DeallocSFList -- Deallocate a SFList structure.
-
- SYNOPSIS
- ok=DeallocSFList(sflist);
- D0 A0
-
- BOOL DeallocSFList(struct ScreenFoolList *);
-
- FUNCTION
- Deallocates a SFList structure. This MUST have been allocated by
- screenfool.library. Don't just FreeMem this structure!
-
- INPUTS
- sflist - A ScreenFoolList that has been cleared by the appropriate
- Clear#?List function.
-
- RESULT
- ok - TRUE if the list could be deallocated.
- FALSE if not.
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- AllocSFList(), ClearDisplayList(), ClearPubScreenList()
-
- screenfool.library/FindDisplayID screenfool.library/FindDisplayID
-
- NAME
- FindDisplayID -- Find the DisplayModeInfo for a DisplayID
-
- SYNOPSIS
- dmi = FindDisplayID(dmilist, DisplayID)
- D0 A0 D0
-
- struct DisplayModeInfo *FindDisplayID(struct ScreenFoolList *,
- ULONG);
-
- FUNCTION
- Find and return the DisplayModeInfo structure associated with
- a DisplayID. This can be a generic or absolute (monitor-specific)
- identifier.
-
- INPUTS
- dmilist - A previously initialized list from NewDisplayList()
- DisplayID - A 32-bit display identifier
-
- RESULT
- dmi - A pointer to the appropriate DisplayModeInfo record, or NULL
- if the DisplayID was invalid for this system, or was not in the
- list (due to property exclusion).
-
- EXAMPLE
-
- NOTES
- Only available display identifiers are valid.
-
- BUGS
-
- SEE ALSO
- NewDisplayList(), FindDMInList(), FindDisplayMode(),
- <graphics/displaymode.h>, graphics.library/ModeNotAvailable()
-
- screenfool.library/FindDisplayMode screenfool.library/FindDisplayMode
-
- NAME
- FindDisplayMode -- Find the position of a DisplayModeInfo
-
- SYNOPSIS
- position = FindDisplayMode(dmilist, dmi);
- D0 A0 A1
-
- ULONG FindDisplayMode(struct ScreenFoolList *,
- struct DisplayModeInfo *);
-
- FUNCTION
- Find and return the position of the display mode record in
- the display mode listing.
-
- INPUTS
- dmilist - A previously initialized list from NewDisplayList()
- dmi - A display mode record (must be from dmilist - you can't
- create your own!)
-
- RESULT
- position - The position of the display mode record in the list.
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- NewDisplayList(), FindDMInList(), FindDisplayID()
-
- screenfool.library/FindDMInList screenfool.library/FindDMInList
-
- NAME
- FindDMInList -- Find the display mode from a listview pos.
-
- SYNOPSIS
- dmi = FindDMInList(dmilist, position);
- D0 A0 D0
-
- struct DisplayModeInfo *FindDMInList(struct ScreenFoolList *,
- ULONG);
-
- FUNCTION
- Find the DisplayModeInfo structure of the ordinal'th item in
- the list.
-
- INPUTS
- dmilist - A previously initialized list from NewDisplayList()
- position - The list position
-
- RESULT
- dmi - A pointer to the DisplayModeInfo record.
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- NewDisplayList(), FindDisplayID(), FindDisplayMode()
-
- screenfool.library/FindScreenInList screenfool.library/FindScreenInList
-
- NAME
- FindScreenInList -- Find screen node in a list, given its pos.
-
- SYNOPSIS
- psinfo = FindScreenInList(pslist, position);
- D0 A0 D0
-
- struct PublicScreenInfo *FindScreenInList(struct ScreenFoolList *,
- ULONG);
-
- FUNCTION
- Find a screen in the given public screen list, and then return
- its address. This is used for things like ListViews.
-
- INPUTS
- pslist - An initialized ScreenFoolList header.
- position - The ordinal position of
-
- RESULT
- A pointer to the PublicScreenInfo structure that is associated
- with this position. A too-large position will return NULL.
-
- EXAMPLE
-
- NOTES
-
- BUGS
-
- SEE ALSO
- NewPubScreenList()
-
- screenfool.library/NewDisplayList screenfool.library/NewDisplayList
-
- NAME
- NewDisplayList -- Find available display modes
-
- SYNOPSIS
- ok = NewDisplayList(dmilist, excludeProperties);
- D0 A0 D0
-
- BOOL NewDisplayList(struct ScreenFoolList *, ULONG);
-
- FUNCTION
- Find all available screen display options, and load them into
- the list. These must eventually be deallocated by calling the
- ClearDisplayList() function. Will mask out duplicate displays
- and will exclude viewmodes that posess properties masked by
- the excludeProperties flag longword.
-
- If there are records already in the list, they will be auto-
- magically removed.
-
- INPUTS
- dmilist - Pointer to a ScreenFoolList
-
- excludeProperties - OR in flags of properties you DON'T want
- to see in the list.
-
- RESULT
- ok - TRUE if list allocated correctly; FALSE otherwise
-
- EXAMPLE
-
- NOTES
- This list is READ-ONLY. No messing.
-
- Nameless display modes that meet your criteria receive the name
- "ID: 0x<hex display ID>".
-
- BUGS
-
- SEE ALSO
- ClearDisplayList(), <graphics/displayinfo.h>
-
- screenfool.library/NewPubScreenList screenfool.library/NewPubScreenList
-
- NAME
- NewPubScreenList -- Obtain a list of all available pub. screens
-
- SYNOPSIS
- ok = NewPubScreenList(pslist);
- D0 A0
-
- BOOL NewPubScreenList(struct ScreenFoolList *);
-
- FUNCTION
- Find every available public screen on the system public screen
- list, get some info on it, and put it in our private list.
-
- If the list is not empty, it will be cleared.
-
- INPUTS
- pslist - A full ScreenFoolList header.
-
- RESULT
- ok - TRUE if list allocated correctly; FALSE otherwise.
-
- EXAMPLE
-
- NOTES
- Must be cleared after use by ClearPubScreenList()
-
- The only permissible uses for this list are read-only. DO NOT
- WRITE TO THIS LIST, ADD OR REMOVE NODES, OR OTHERWISE ALTER ITS
- CONTENTS. Screenfool's list protection is not that sophisticated,
- so don't mess with it.
-
- DON'T mix up a display mode list with a screen list. There is some
- error checking, but don't risk it.
-
- BUGS
-
- SEE ALSO
- <intuituion/screens.h>, intuition.library/LockPubScreenList(),
- intuition.library/GetScreenDrawInfo(), OpenPublicScreenA(),
- intuition.library/CloseScreen(), intuition.library/OpenScreen(),
- ClearPubScreenList(), <libraries/screenfool.h>
-
- screenfool.library/OpenPublicScreenA screenfool.library/OpenPublicScreenA
-
- NAME
- OpenPublicScreenA -- Open a public screen & make it non-private
-
- SYNOPSIS
- screen = OpenPublicScreenA(Name, TagList);
- D0 A0 A1
-
- struct Screen *OpenPublicScreenA(STRPTR, struct TagItem *);
-
- VarArgs version (SAS/C 6.0 #pragma tagcall):
-
- struct Screen *OpenPublicScreen(STRPTR,
- tag, data, tag, data, ..., TAG_DONE);
-
- FUNCTION
- Open a public screen in the specified display mode, and set it to
- be accessable from other tasks.
-
- INPUTS
- Name - A string that contains a valid, unused public screen name.
- TagList - Additional tags for this screen.
-
- RESULT
- screen - Pointer to a struct Screen. DO NOT CLOSE THIS USING
- intuition.library/CloseScreen()!!! Use:
- ok=ClosePublicScreen(screen);
-
- EXAMPLE
-
- NOTES
- The screen title will be set to the public screen name. You can
- override this behavior by using an SA_Title tag in your taglist.
- Note that this title WILL NOT be protected or deallocated by
- the library.
-
- Screen options MUST be supplied via Tags. There is no support
- (present OR future) for NewScreen or ExtNewScreen structures.
-
- You may NOT use screen->UserData! This is the only pointer to
- the screenfool.library tracking, which is necessary to recover
- the memory used by OpenPublicScreen().
-
- BUGS
-
- SEE ALSO
- NewDisplayList(), <graphics/displayinfo.h>, <intuituion/screens.h>,
- ClosePublicScreen(), intuition.library/OpenScreen()
-
- screenfool.library/StandardizeDisplayIDcreenfool.library/StandardizeDisplayID
-
- NAME
- StandardizeDisplayID -- Convert a generic display identifier
- to a monitor-specific one.
-
- SYNOPSIS
- AbsDisplayID = StandardizeDisplayID(DisplayID);
- D0 D0
-
- ULONG StandardizeDisplayID(ULONG);
-
- FUNCTION
- Converts generic display identifiers to their monitor-specific
- equivalents. This function uses Mode Promotion (under 3.0) and
- the PAL/NTSC setting to find the best available mode to display
- this type of display.
-
- INPUTS
- DisplayID - A 32-bit display identifier
-
- RESULT
- AbsDisplayID - A 32-bit display identifier
-
- EXAMPLE
-
- NOTES
- You may supply an absolute identifier, in which case it returns
- the same identifier (if internal) or a system-defined result.
-
- You may supply a display ID that is in the internal database but
- unavailable.
-
- BUGS
-
- SEE ALSO
- graphics.library/GetDisplayInfoData(), <graphics/displaymodes.h>
-
-